package com.dmpp.mes.service.impl;


import com.dmpp.mes.bean.ResponseData;
import com.dmpp.mes.dao.InOutWarehouseMapper;
import com.dmpp.mes.parameterInfo.Aroma;
import com.dmpp.mes.parameterInfo.InOutWarehouse;
import com.dmpp.mes.service.InOutWarehouseService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "InOutWarehouseService")

public class InOutWarehouseServiceImpl implements InOutWarehouseService {

    @Autowired
    private InOutWarehouseMapper mapper;

    @Override
    public ResponseData findAll(InOutWarehouse inOutWarehouse) {
        ResponseData responseData = new ResponseData();
        PageInfo pageInfo = new PageInfo<>(mapper.findAll(inOutWarehouse));
        responseData.setData(pageInfo);
        return responseData;
    }
}
